<template>
  <div class="popup">
    <el-dialog :ref="popObj.popName" :title="popObj.dialogTitle" :visible.sync="popObj.dialogVisible"
      :width="popObj.popupWidth" :before-close="handleClose">
      <div class="detail">
        <el-col>
          <el-table :data="tableData" style="width: 100%"  height="450">
            <el-table-column prop="mineScoreText" label="计分项" width="280">
            </el-table-column>
            <el-table-column prop="mineScore" label="计分值" width="100">
            </el-table-column>
            <el-table-column prop="updateTime" label="执法时间">
            </el-table-column>
            <el-table-column prop="lawMan" label="执法人">
            </el-table-column>
          </el-table>
        </el-col>
      </div>

    </el-dialog>
  </div>
</template>

<script>
import { getSortMineDetailServe } from "@/api/index";

export default {
  name: "Index",
  components: {},
  props: {
    popObj: {
      type: Object,
      require: true,
    },
    detailForm: {
      type: Object,
      require: true,
    }
  },
  data() {
    return {
      tableData: []
    };
  },
  mounted() {
    this.getSortMineDetail()
  },
  methods: {
    getSortMineDetail() {
      let options = {
        ...this.detailForm
      }
      getSortMineDetailServe(options).then(res => {
        if (res.code == 200) {
          this.tableData = res.data;
        } else {
          this.tableData = [];
        }
      })
    },
    popCancel() {
      this.$emit("cancelPop");
    },
    popConfirm() {
      this.$emit("confirmPop");
    },
    handleClose() {
      this.$emit("cancelPop");
    },
    handleClick(tab, event) {
      console.log(tab, event);
    },
    handleSizeChange(val) {
      this.pageObj.pageSize = val;
    },
    handleCurrentChange(val) {
      this.pageObj.pageNumber = val;
    }
  },
};
</script>

<style lang="scss">
.popup {
  width: 550px;

  .el-dialog {
    z-index: 10000;
    background-color: #ffffff;
    box-shadow: 0px 0px 10px 0px rgba(17, 130, 251, 0.5);
    border-radius: 5px;
    margin-top: 10% !important;
  }

  .el-dialog__header {
    width: 100%;
    height: 50px;
    line-height: 38px;
    border-bottom: 1px solid #f6f7f9;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 16px;
    position: relative;
    z-index: 10;
  }

  .el-dialog__close.el-icon.el-icon-close {
    font-size: 22px;
    width: 17px;
    height: 17px;
  }

  .el-button.el-button--default {
    width: 88px;
    color: #1182fb;
    border: 1px solid #1182fb;
  }

  .el-button.el-button--primary {
    width: 88px;
  }

  .el-dialog__body {
    padding: 24px 32px;
    box-sizing: border-box;
  }

  .el-dialog__headerbtn {
    top: 16px;
  }

  .el-dialog__title {
    color: #3c4354;
    font-family: PingFangSC-Regular;
    font-size: 18px;
    line-height: 50px;
  }

  .el-icon-folder-add {
    color: #1948f5;
    font-size: 18px;
    vertical-align: middle;
    margin-left: 10px;
    cursor: pointer;
  }

  .detail {
    display: flex;
  }

  .baseInfo {
    display: flex;
  }

  .widthHalf {
    width: 50%;
  }

  .mbottom {
    margin-bottom: 10px;
    width: 80px;
  }

  .img {
    width: 400px;
  }
}
</style>